Drop use of unsafep for checking Custom themes; bugfixes.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 1 Feb 2011 17:34:07 +0000 (12:34 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 1 Feb 2011 17:34:07 +0000 (12:34 -0500)
commit988be3e142c1733e3957dcb3b293de66452cadaa
tree7cd4b05492c00fcf768ad8e67b5b481a8514d3f9
parentedaf6adefc96580c2e66ae04c27af851d5edb4e4
Drop use of unsafep for checking Custom themes; bugfixes.

* lisp/custom.el (load-theme): Define return value.  Drop use of
unsafep; call custom-theme-load-confirm for non-known-safe themes.
(custom-theme-load-confirm): Scroll in the correct window.
(custom-enabled-themes): Add custom-safe-themes to :set-after.

* lisp/cus-theme.el (custom-theme-checkbox-toggle): Don't activate the
checkbox if load-theme fails.
lisp/ChangeLog
lisp/cus-theme.el
lisp/custom.el